<%@page contentType="text/html;charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
    <head>
        <title><c:out value="${pageTitle}" /></title>
    </head>
    <body>
        <h2>${pageTitle}</h2>
        <table border="1">
            <tr>
            <c:forEach items="${tableHeader}" var="head">
                <th>${head}</th>
            </c:forEach>
            </tr>
        <c:forEach items="${seminars}" var="car">
            <tr>
                <td><c:out value="${car.subject.code}"/></td>
                <td><c:out value="${car.subject.name}"/></td>
                <td><c:out value="${car.number}"/></td>
            </tr>
        </c:forEach>
        </table>
     </body>
</html>